package com.ruoyi.web.Tool.BT;

import java.io.FileOutputStream;
import java.io.IOException;

public class FileUtil {
    public static void writeBytesToFile(byte[] data, String filePath) throws IOException {
        try (FileOutputStream fos = new FileOutputStream(filePath)) {
            fos.write(data);
        }
    }
}